package mobi.pooper.db;

import android.database.Cursor;

public class CursorImpl implements ICursor{
	private final Cursor cursor;

	public CursorImpl(Cursor cursor) {
		this.cursor = cursor;
	}

	@Override
	public void moveToFirst() {
		cursor.moveToFirst();
	}

	@Override
	public int getColumnIndexOrThrow(String keyName) {
		return cursor.getColumnIndexOrThrow(keyName);
	}

	@Override
	public int getCount() {
		return cursor.getCount();
	}

	@Override
	public String getString(int index) {
		return cursor.getString(index);
	}

	@Override
	public int getInt(int index) {
		return cursor.getInt(index);
	}

	@Override
	public void moveToNext() {
		cursor.moveToNext();
	}
}
